package com.example.warehouse.bus.service;

import com.example.warehouse.bus.pojo.entity.BusBreakage;
import com.example.warehouse.bus.pojo.param.BusBreakRequestParam;
import com.example.warehouse.bus.pojo.param.BusBreakageQueryParam;
import com.example.warehouse.common.pojo.vo.PageData;
import org.springframework.transaction.annotation.Transactional;

public interface IBusBreakageService {
    //分页查询数据的重载
    PageData<BusBreakage> pageHelperByPageNumAndPageSize(Integer pageNum, Integer pageSize);
    PageData<BusBreakage> pageHelperByPageNum(Integer pageNum);
    //处理报损的请求
    @Transactional
    void breakageRequest(BusBreakRequestParam busBreakRequestParam);
    //根据选择的类型进行的模糊查询
    PageData<BusBreakage> findByKeywordAndTypeFuzzyQuery(BusBreakageQueryParam busBreakageQueryParam,Integer pageNum);
}
